<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%-- <%@ page import="java.text.SimpleDateFormat"%>  --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>365家长课堂微信绑定页面</title>
    <style type="text/css">
        body {
            text-align: center;
        }

        .already_binding {
            position: absolute;
            width: 400px;
            height: 200px;
            left: 50%;
            top: 45%;
            margin-left: -200px;
            margin-top: -100px;
            font-size: 36px;
            color: #999999;
        }
        .binding_success{
            margin-top: 200px;
        }
        .binding_success img:first-child{
            width: 200px;
            height: 200px;
        }
        .binding_success img:last-child{
            width: 374px;
            height: 374px;
        }
        .color-green-p{
            font-size: 36px;
            color: #32b9aa;
        }
        .color-gray-p{
            color: #999999;
            font-size: 30px;
        }
        .button-close{
            width: 690px;
            height: 90px;
            background:#5bc9be 100% ;
            margin: auto;
        }
        .button-close p{
            font-size: 30px;
            color: white;
            padding-top: 25px;
            cursor: pointer;
        }
    </style>
</head>
<body id="layout" class="easyui-layout">
<div class="already_binding" >
    <p>
        您已绑定，可直接登录
    </p>
</div>
<div class="binding_success" >
    <img src="../../weixin/images/success.png" >
    <p class="color-green-p">
        绑定成功
    </p>

    <p class="color-gray-p">
        如果您还没关注此公众号
        长按二维码即可关注
    </p>
    <img src="../../weixin/images/myjy_logo.jpg" >

    <div class="button-close">
        <p>
            关闭
        </p>
    </div>
</div>
</body>
<script src="../../common/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
    $(function () {

        if(isNotBinding()){
            $('.binding_success').css('display','block');
            $('.already_binding').css('display','none');
        }else{
            $('.binding_success').css('display','none');
            $('.already_binding').css('display','block');
        }
    });

    function isNotBinding() {
        if (${sessionScope.binding_way=='already_ok'}) {
            return false;
        } else {
            return true;
        }
    }

    $('.button-close').click(function () {
        window.close();
    })
</script>


</html>